# coding: utf-8

MOBILE_FORMAT = r'^(1(3|4|5|6|7|8|9)\d{9})$'

PER_PAGE = 20

CURRENT_APP_VERSION_KEY = 'current_%s_version'

# 用于苹果上线审核的手机号
VERIFY_MOBILE = (
    '13699899775',
    '18817877341',
    '18038064601',
    '18516234676',
    '13684988236',
)


RECOMMEND_USER_LIST_KEY = 'recommend_user_list_{}'

RED_PACKET_EXPIRED_SECOND = 60 * 60 * 24


class MobileListPageType(object):
    """
    create by ld_wu 2018-01-10
    """

    # 可能认识（所有都已注册）
    REGISTERED = 10
    # 通讯录（已邀请+已注册）
    MOBILE_LIST = 20


class BlacklistPageType(object):
    """
    create by ld_wu 2018-04-10

    """

    BLOCK = 10         # 拉黑
    UNBLOCK = 20       # 取消拉黑


class BlackValue(object):

    """
    create by ld_wu 2018-04-10
    网易im接口对应的值
    """

    UNBLOCK = 0     # 取消拉黑
    BLOCK = 1       # 拉黑


IM_NOTIFY_KEY = 'im_message_notify_{user_id}'
